#include "StaticFile.h"

namespace Effekseer
{

StaticFile::StaticFile(std::shared_ptr<StaticFileReader>& reader)
	: reader_(reader)
{
	reader_->GetData(buffer_);
}

StaticFile::~StaticFile()
{
}

void* StaticFile::GetData()
{
	return buffer_.data();
}

int StaticFile::GetSize()
{
	return buffer_.size();
}

std::u16string StaticFile::GetPath()
{
	return reader_->GetPath();
}

StaticFileType StaticFile::GetFileType()
{
	return reader_->GetFileType();
}

} // namespace Effekseer